<script setup lang='ts'>

import { ref } from "vue";
import Dialog from "./components/Dialog.vue";
const visible=ref(false)

</script>

<template>
    <div>
      <button @click="visible=!visible">切换</button>
        <Dialog v-if="visible" v-model="visible">
          <div>插入内容</div>
        </Dialog>
    </div>
</template>

<style lang='less' scoped>

</style>